package cbh.tool.entity;

import cbh.tool.scheduler.clietn.HttpType;
import cbh.tool.scheduler.core.Task;

/**
 * Created by hx-pc on 16-4-27.
 */
public class MySchedulerTaskEntity implements MySchedulerTask{

    private Task task;

    public Task getTask() {
        return task;
    }

    public void setTask(Task task) {
        this.task = task;
    }

    @Override
    public String getCronExpression() {
        return task.getCronExpression();
    }

    @Override
    public String getHost() {
        return task.getHost();
    }

    @Override
    public String getUri() {
        return task.getUri();
    }

    @Override
    public Object[] getParams() {
        return task.getParams();
    }

    @Override
    public HttpType getHttpType() {
        return task.getHttpType();
    }
}
